<template>
    <div class="t-input" :style="style">
        <el-input v-model="inputValue" :placeholder="placeholder" @change="inputChange"></el-input>
        <div class="message">
            {{message}}
        </div>
    </div>
</template>

<script>
    export default {
        name: "Tinput",
        props:[ 'value', 'placeholder','style','message','onchange'],
        data(){
            return{
                inputValue:this.value
            }
        },
        methods:{
            inputChange(value){
                this.$emit('inputChange',value)
            }
        }
    }
</script>

<style scoped lang="less">
    .t-input{
        width: 580px;
        height: 60px;
        /deep/ .el-input__inner {
            width: 100%;
            height: 60px;
            padding: 0 27px;
            display: inline-block;
            font-size: 18px;
            color: #CCCCCC;
            background: rgba(7,7,7,0.30);
            border: 1px solid rgba(77,77,77,1);
            &:focus{
                border: 1px solid rgba(248,115,59,1);
            }
        }
        .message{
            padding: 0 27px;
            color: #FF4A47;
            font-size: 18px;
        }
    }

</style>
